package org.dtrd.modules.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.dtrd.modules.system.entity.po.DtrdEntRdQwClientFollow;
import org.springframework.stereotype.Repository;

/**
 * 企业微信客户跟进
 */
@Repository
public interface DtrdEntRdQwClientFollowMapper extends BaseMapper<DtrdEntRdQwClientFollow> {

    /**
     * 根据员工id和客户id查询记录
     *
     * @param externalUserid 客户id
     * @param followUserId   跟进员工id
     * @return
     */
    DtrdEntRdQwClientFollow getRecordByExternalUserIdFollowUserId(@Param("externalUserid") String externalUserid, @Param("userId") String followUserId);
}